# with open("../data/error_login.yaml", 'r', encoding='utf-8') as f:
#     data = yaml.safe_load(f)
#     print(data)
# import pytest
# from selenium import webdriver
#
# from page.issue_page import IssuePage
# from selenium.webdriver.common.by import By
# update_data = ['测试issue', 'Low', '2024-01-25', '2024-05-24', '223523', 'Feedback']
#
# import pytest
import yaml

# @pytest.fixture
# def prepare_data(request):
#     # 简单示例，实际逻辑可以根据传入的参数定制化
#     return request.param + " prepared"
#
#
# @pytest.mark.parametrize("prepare_data,expected", [
#     ("test_data_1", "expected_result_1"),
#     ("test_data_2", "expected_result_2")
# ], indirect=["prepare_data"], ids=lambda x: f"Test with input: {x}")
# def test_with_dynamic_names(prepare_data, expected):
#     # 这里的`prepare_data`将是fixture返回的值
#     assert 1==1
#
# with open("../data/register.yaml", 'r', encoding='utf-8') as f:
#     data = yaml.safe_load(f)
#     print(data.get('register'))
from page.login_page import LoginPage

a = LoginPage()
a.save_cookie()